﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Urb.Weather.Core.Engine;
using Urb.Weather.Core.Configuration;

namespace Urb.Weather.Core.Provider
{
    public interface IWeatherDataProvider
    {
        WeatherDataProviderConfigurationDefinition ConfigurationDefinition { get; }
        string SourceName { get; }

        void InitializeInstance(
            IWeatherDataProviderInstanceRegistrationToken instanceRegistrationToken,
            IEngine engine,
            IWeatherDataProviderConfiguration providerConfiguration,
            Action<IWeatherDataProviderInstanceRegistrationToken, WeatherData> dataRefreshed);
    }
}
